home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / tex / tetex / distrib / faq-tete < prev    next >
Text File  |  1996-11-16  |  15KB  |  362 lines

  1. This is the FAQ for teTeX -- a TeX distribution for UNIX compatible
  2. systems. If you have questions about some points that remain unclear,
  3. or if you think that things could be described better, just drop me
  4. a line. My Email address:
  5.  
  6.         te@informatik.uni-hannover.de (Thomas Esser)
  7.  
  8.  
  9. This article includes answers to:
  10.   0) Where can I get the teTeX distribution?
  11.   1) Is there a mailing list for teTeX?
  12.   2) Now that I know that there is a mailing list: is there an archive
  13.      of the list?
  14.   3) I use PostScript fonts in my documents. When previewing with xdvi,
  15.      MakeTeXPK sometimes hangs in gsftopk.
  16.   4) I moved the binaries to a different location. Now, tex says:
  17.      ``I can't find the default format file!''.
  18.   5) I added some files in the texmf tree. But they are not found.
  19.   6) When running some old dvi files through a dvi driver, I get warnings
  20.      about checksum errors.
  21.   7) What is the best method to get pk fonts in a batch job?
  22.   8) What to do if I need the fonts for several modes?
  23.   9) Can I share the teTeX directory tree between different platforms?
  24.  10) After MakeTeXTPK and MakeTeXTFM sucessfully generate fonts, kpathesa
  25.      complains and does not use the newly generated font.
  26.  11) MakeTeXTFM runs Metafont with a mode that I do not like.
  27.  12) Is there an easy way to copy .tfm or .pk fonts from a temporal directory
  28.      to their standard directory below $TEXMF?
  29.  13) How about adding program XYY or a macro package ABC to teTeX?
  30.  14) Where should I keep my local stuff (programs, macros, ...)?
  31.  15) How do I deinstall an old version of teTeX?
  32.  16) How do I manage to execute the right binaries on each platform?
  33.  17) Why does not install.sh call fontimport to copy the fonts from my
  34.      previous teTeX installation?
  35.  18) Under DOS, I used emTeX with LJ fonts. Which metafont mode should I use
  36.      now with teTeX?
  37.  
  38.  
  39. Answers:
  40.  
  41. 0)  Where can I get the teTeX distribution?
  42.  
  43.     The primary site is in germany:
  44.       ftp://sunsite.informatik.rwth-aachen.de:/pub/comp/tex/teTeX
  45.  
  46.     Mirror sites:
  47.       ftp://ftp.dante.de/tex-archive/systems/unix/teTeX
  48.       ftp://ftp.tex.ac.uk/tex-archive/systems/unix/teTeX
  49.       ftp://sunsite.unc.edu/pub/Linux/apps/tex/teTeX/distrib
  50.  
  51. 1)  Is there a mailing list for teTeX?
  52.  
  53.     Yes. Tere is one list for discussion and one (moderated) list for
  54.     announcements. The discussion list is
  55.       tetex@informatik.uni-hannover.de
  56.     and the announcement list is
  57.       tetex-announce@informatik.uni-hannover.de
  58.     To subscribe to one of these lists, send a message containing the line
  59.         subscribe tetex
  60.     or
  61.         subscribe tetex-announce
  62.     resp. to majordomo@informatik.uni-hannover.de . The majordomo server
  63.     understands a few more commands. To get more help about our
  64.     server, send a mail with the line 'help' in the body.
  65.     Note that announcements are posted into both lists, so if you are
  66.     interested in discussions and announcements, you only need to
  67.     subscribe to the tetex list.
  68.  
  69. 2)  Now that I know that there is a mailing list: is there an archive
  70.     of the list?
  71.  
  72.     Yes. Just send a message with the line
  73.         get tetex archive
  74.     to majordomo@informatik.uni-hannover.de .
  75.  
  76. 3)  I use PostScript fonts in my documents. When previewing with xdvi,
  77.     MakeTeXPK sometimes hangs in gsftopk.
  78.  
  79.     There are known problems with gs3.XXX when using gsftopk. Solution:
  80.     use GNU gs2.6.2.
  81.  
  82. 4)  I moved the binaries to a different location. Now, tex says:
  83.     ``I can't find the default format file!''
  84.  
  85.     The modified Kpathsea library (a library to locate files on disks,
  86.     written by Karl Berry) used in the teTeX distribution set the
  87.     variables SELFAUTODIR and SELFAUTOPARENT relative to the location of
  88.     the binary.
  89.  
  90.     SELFAUTODIR is the directory one level above the directory containing the
  91.     binary and SELFAUTOPARENT is its parent directory.
  92.  
  93.     Example1: assuming xdvi is found in /usr/tex/bin/i486-linux/xdvi.
  94.           => SELFAUTODIR:         /usr/tex/bin
  95.           => SELFAUTOPARENT:      /usr/tex
  96.  
  97.     Example2: assuming xdvi is found in /usr/tex/bin/xdvi.
  98.           => SELFAUTODIR:         /usr/tex
  99.           => SELFAUTOPARENT:      /usr
  100.  
  101.     The file texmf.cnf is searched for in $SELFAUTODIR, $SELFAUTOPARENT,
  102.     $TETEXDIR. If the file texmf.cnf if not found, set the TETEXDIR variable
  103.     in your environment.
  104.  
  105.     But even if the texmf.cnf file is found, there may be an incorrect
  106.     definition of TETEXDIR in the file. Check the following:
  107.  
  108.     In example1, you could use TETEXDIR=$SELFAUTOPARENT and in example2
  109.     TETEXDIR=$SELFAUTODIR. A simpler setting for TETEXDIR could simply
  110.     be TETEXDIR=/usr/tex in both cases. This can be convenient if you
  111.     are not going to change the location of your teTeX tree.
  112.  
  113. 5)  I added some files in the texmf tree. But they are not found.
  114.  
  115.     You need to run texhash to update the ls-R file. See answer to 14)
  116.     as well...
  117.  
  118. 6)  When running some old dvi files through a dvi driver, I get warnings
  119.     about checksum errors.
  120.  
  121.     The PostScript fonts are completely rearranged and the tfm files have
  122.     different checksums. If you have the (La)TeX source of your document,
  123.     you can get rid of the messages by running the sources through (La)TeX
  124.     again.
  125.  
  126. 7)  What is the best method to get pk fonts in a batch job?
  127.  
  128.     If you do have lots of dvi files (e.g. the documentation of teTeX),
  129.     just run the allneeded script on them. If does run all those files
  130.     through dvips (but output is send to /dev/null and not to a printer),
  131.     and thus calculates all fonts that are needed to print these files
  132.     (or preview with the same mode).
  133.  
  134.     Example:
  135.          allneeded `kpsexpand '$TEXMF'`/doc >& /tmp/allneeded.log &
  136.  
  137.     The above command calculates the pk files for all the installed
  138.     documentation in a background job.
  139.  
  140.     If you do not have many dvi files, you can use the allcm and/or
  141.     alldc scripts (allcm is for Computer Modern fonts, and alldc for the
  142.     DC fonts). You need to have LaTeX installed and the scripts calculate
  143.     the fonts for all sizes and shapes that are used in typical LaTeX
  144.     documents. allcm and alldc produce lots of warnings. You can just
  145.     ignore them.
  146.  
  147. 8)  What to do if I need the fonts for several modes?
  148.  
  149.     You only need the modes together with a printer or for previewing. You
  150.     should add a dvips configuration file for each printer using texconfig
  151.     and use the most common printing mode for previewing.
  152.     Then, any of the above scripts in 7) (allneeded, allcm, alldc) can be
  153.     given an argument of the form -P PRINTER (where PRINTER must be a known
  154.     printer for dvips). This will calculate the fonts with the mode of
  155.     the printer PRINTER.
  156.  
  157.     Example:
  158.          For dvips I have configured the printer lp to have the mode
  159.          ljfour. To get all DC fonts with ljfour mode, I would enter:
  160.  
  161.          allcm -P lp
  162.  
  163.     If you do not have a dvips configuration file that corresponds to a
  164.     specific mode, you can still enter the mode on the command line.
  165.     Note however, that you should specify the corresponding resolution
  166.     as well.
  167.  
  168.     Example:
  169.          To get all fonts in cx mode (CanonCX mode is used by many 300dpi
  170.          printers), give the command:
  171.  
  172.          allcm -D 300 -mode cx
  173.  
  174.     The flags -D and -mode are directly passed down to dvips.
  175.  
  176. 9)  Can I share the teTeX directory tree between different platforms?
  177.  
  178.     Yes. The only platforms specific directory is $TETEXDIR/bin. If you
  179.     want to use the same teTeX tree on different platforms, just put
  180.     the binaries for each platform into a different subdirectory of
  181.     $TETEXDIR/bin, e.g
  182.          /usr/local/TeX/bin/i486-linux
  183.          /usr/local/TeX/bin/sparc-solaris2.4
  184.     You can then mount the whole $TETEXDIR tree on all machines and
  185.     share almost all the files between them.
  186.  
  187. 10) After MakeTeXTPK and MakeTeXTFM sucessfully generate fonts, kpathesa
  188.     complains and does not use the newly generated font.
  189.  
  190.     If you happen to see output like this:
  191.        ...
  192.        Transcript written on dcbxti10.log.
  193.        /usr/local/TeX/teTeX/texmf/fonts/tfm/public/dc/dcbxti10.tfm
  194.        kpathsea: Appending font creation commands to missfont.log.
  195.        ...
  196.     then your shell is propably very broken. This problem is known with
  197.     the original bash 1.14.3 that has many problems with exit codes and
  198.     trap handling. Try the following line:
  199.  
  200.         sh -c 'exit 1'; echo $?
  201.  
  202.     The buggy bash gives 127 as result. Fixes for these problems have been
  203.     available e.g. from the internet newsgroup gnu.bash.bug, so not all
  204.     instances of bash 1.14.3 are broken. The current bash (now: 1.14.6)
  205.     does work fine with all scripts in teTeX.
  206.  
  207. 11) MakeTeXTFM runs Metafont with a mode that I do not like.
  208.  
  209.     Use texconfig and select a different mode as default mode.
  210.  
  211. 12) Is there an easy way to copy .tfm or .pk fonts from a temporal directory
  212.     to their standard directory below $TEXMF?
  213.  
  214.     Yes. Use the fontimport utility. If your want to turn off the "varfonts"
  215.     feature for fontimport, set USE_VARFONTS to false in the environment.
  216.  
  217.     An easy method to move your fonts from, e.g. $VARFONTS to their
  218.     "final" standard place is the following (can be used e.g. for a cron
  219.     command):
  220.  
  221.         env USE_VARFONTS=false fontimport -d `kpsexpand '$VARFONTS'`; texhash
  222.  
  223. 13) How about adding program XYY or a macro package ABC to teTeX?
  224.  
  225.     Well, there are some things to take into account:
  226.         - I want to keep the size of the distribution small.
  227.         - I have only a limited amount of time.
  228.         - teTeX can be installed with a simple 'make world' on the most
  229.           common UNIX platforms. Adding a new program could break the whole
  230.           thing.
  231.     Please think about this before asking me to add something. But if a
  232.     really useful thing can be added without much effort and disk space
  233.     usage, I may decide to do that.
  234.  
  235.     Another possibility is, that things are added to the contrib directory
  236.     of teTeX.
  237.  
  238. 14) Where should I keep my local stuff (programs, macros, ...)?
  239.  
  240.     I suggest to use a different directory tree and to adjust the search
  241.     paths in the texmf.cnf file.
  242.  
  243.     Example: let us assume that you keep your local TEXMF tree
  244.       in /usr/local/TeX.extra/texmf and you keep the same structure
  245.       there that I used in the TEXMF tree of teTeX. You should modify
  246.       your texmf.cnf like this (but do not break the lines):
  247.  
  248.     TEXMFLOCAL=/usr/local/TeX.extra/texmf
  249.     TEXINPUTS.latex=$KPSE_DOT:!!$TEXMF/tex/latex//:!!$TEXMF/tex//:
  250.           $TEXMFLOCAL/tex/latex//:$TEXMFLOCAL/tex//
  251.     TEXINPUTS.tex=$KPSE_DOT:!!$TEXMF/tex//:$TEXMFLOCAL/tex//
  252.     MFINPUTS=$KPSE_DOT:!!$TEXMF/metafont//:!!$FONTDIR/source//:
  253.           $TEXMFLOCAL/metafont//:$TEXMFLOCAL/fonts/source//
  254.     VFFONTS=!!$FONTDIR/vf//:$KPSE_DOT
  255.     TFMFONTS=!!$FONTDIR/tfm//:TEXMFLOCAL/fonts/tfm//:
  256.       VARFONTS/tfm//:$KPSE_DOT
  257.     ...
  258.  
  259. 15) How do I deinstall an old version of teTeX?
  260.  
  261.     Well, the simple answer is: rm -rf. But there may be some more
  262.     things you want to do. You may keep a backup of your .pk fonts or of
  263.     some local files you added to $TEXMF (see question 14, too) before
  264.     you remove the old directory tree. Note, however that from teTeX 0.2
  265.     to 0.3, there has been an update of the CM fonts (Knuth has updated
  266.     the Metafont sources). So you may want to remove your old .pk files
  267.     and have them recreated with the new sources.
  268.  
  269.     Another problem is, that there may be some symbolic links in
  270.     /usr/local/{bin,man} (or a similar directory) after you remove the
  271.     old teTeX directory tree and you may want to remove those links,
  272.     too. A simple way to do this, is the following:
  273.  
  274.         cd /usr/local/bin
  275.         sh -c 'for i in *; do test -s $i || echo $i; done'
  276.  
  277.     This loop echo'es all files with zero length, especially all stale
  278.     symbolic links. If you want to remove all files that are shown by the
  279.     command above, you can do this with:
  280.  
  281.         sh -c 'for i in *; do test -s $i || rm -f $i; done'
  282.  
  283.     You can repeat the above steps for other directories, as well 
  284.     (e.g. /usr/local/man/man1 and /usr/local/man/man5).
  285.  
  286. 16) How do I manage to execute the right binaries on each platform?
  287.  
  288.     Assuming that you have binaries for several platforms installed, your
  289.     binaries are in $TETEXDIR/bin/PLATFORM. The first thing you can try is
  290.     to set up your PATH with
  291.         SYSDIR=`uname -m`-`uname -s`
  292.         PATH=$TETEXDIR/bin/$SYSDIR:...
  293.     You may need to rename the PLATFORM directories for this method.
  294.  
  295.     Another thing that may help is to include a local directory in your
  296.     PATH (e.g. /usr/local/bin) and create symbolic links for the binaries:
  297.         linux# ln -sf /usr/local/teTeX/bin/i486-linux/* /usr/local/bin
  298.         sun# ln -sf /usr/local/teTeX/bin/sparc-solaris2.4/* /usr/local/bin
  299.         ...
  300.  
  301.     If you do not like the uname-method for your PATH and the symlink
  302.     method, you may consider installing a small wrapper program that
  303.     calls the programs for the right platform. Install the wrapper in
  304.     $TETEXDIR/bin and create a symbolic link for each binary.
  305.  
  306.     Here an example:
  307.     TETEXDIR=/usr/local/teTeX
  308.     cd $TETEXDIR/bin
  309.     vi platf_wrapper     # see script below ...
  310.     chmod +x platf_wrapper
  311.     list=`ls i486-linux`    # get a list of programs. 
  312.     for i in $list; do
  313.         ln -s platf_wrapper $i
  314.     done
  315.  
  316.      Tell your users to include $TETEXDIR/bin in their PATH. Make sure
  317.      that TETEXDIR is either set to an absolute path (e.g. /usr/local/teTeX)
  318.      or to $SELFAUTODIR (but not $SELFAUTOPARENT), since the programs are
  319.      now found one directory level earlier.
  320.  
  321.      Now the sample wrapper. Customize, if you need:
  322.  
  323.        #!/bin/sh
  324.        
  325.        # the path to the directories with the subdirs for each platform
  326.        BINDIR=/usr/local/teTeX/bin
  327.        
  328.        # export the variable. If we are called again,
  329.        # we do not need to recalculate.
  330.        export THIS_PLATFORM
  331.        
  332.        case "$THIS_PLATFORM" in
  333.          "")
  334.            case "`uname -s`" in
  335.              Linux)
  336.                THIS_PLATFORM=i486-linux;;
  337.              SunOS)
  338.                THIS_PLATFORM=sparc-solaris2.4;;
  339.              IRIX)
  340.                THIS_PLATFORM=mips-irix5.3;;
  341.              *)
  342.                echo "$0: fatal error: system not detected." >&2
  343.                exit 1
  344.            esac;;
  345.        esac
  346.        
  347.        exec $BINDIR/$THIS_PLATFORM/`basename $0` "$@"
  348.  
  349. 17) Why does not install.sh call fontimport to copy the fonts from my
  350.     previous teTeX installation?
  351.  
  352.     Knuth has updated the Metafont sources. You get better .pk fonts if
  353.     you recalculate them. See also the ansers 7) and 8).
  354.  
  355. 18) Under DOS, I used emTeX with LJ fonts. Which metafont mode should I use
  356.     now with teTeX?
  357.  
  358.     cx mode. It is common to most 300DPI laser printers. I.e. in
  359.     texconfig|MODE, choose the line saying:
  360.  
  361.        cx        Canon CX, SX, LBP-LX (300dpi)
  362.